//
//  ChongZhiViewController.m
//  JiuJiuShangCheng
//
//  Created by jiujiukeji on 2018/8/9.
//  Copyright © 2018年 jiujiukeji. All rights reserved.
//

#import "ChongZhiViewController.h"

@interface ChongZhiViewController ()

@property (nonatomic, strong) UITextField *textField;

@end

@implementation ChongZhiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = UIColorWhite;
    [self loadBaseTitleLable:@"会员充值"];
    
    [self setUpUI];
}
- (void)setUpUI
{
    UIView *textV = [[UIView alloc] init];
    textV.layer.masksToBounds = YES;
    textV.layer.borderColor = globalGray.CGColor;
    textV.layer.borderWidth = 1;
    textV.layer.cornerRadius = 8;
    [self.view addSubview:textV];
    [textV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.view);
        make.top.equalTo(self.view).offset(SafeAreaTopHeight+rateHeight(40));
        make.size.mas_offset(CGSizeMake(rateWidth(660), rateHeight(90)));
    }];
    
    self.textField = [[UITextField alloc] init];
    _textField.textColor = UIColorFromRGB(0x333333);
    _textField.font = UIFontSystem(15);
    [textV addSubview:_textField];
    [_textField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(textV).offset(rateWidth(15));
        make.size.mas_offset(CGSizeMake(rateWidth(600), rateHeight(60)));
        make.centerY.equalTo(textV);
    }];
    
    UIButton *btn = [UIButton buttonWithTitle:@" 微信支付" fontSize:14 titleColor:UIColorFromRGB(0x333333) background:kClearColor cornerRadius:0];
    [btn setImage:UIImageNamed(@"shemoren1") forState:(UIControlStateNormal)];
    [btn sizeToFit];
    [self.view addSubview:btn];
    [btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(textV);
        make.top.equalTo(textV.mas_bottom).offset(rateHeight(17));
    }];
    
    UIButton *btn1 = [UIButton buttonWithTitle:@"立即充值" fontSize:14 titleColor:UIColorWhite background:navBarColor cornerRadius:8];
    [self.view addSubview:btn1];
    [btn1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(textV);
        make.top.equalTo(btn.mas_bottom).offset(rateHeight(70));
        make.size.mas_offset(CGSizeMake(rateWidth(660), rateHeight(90)));
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
